Skip to content

Rails Engine Support - Example 2#413

Closed
orionstudt wants to merge 3 commits intoahx:mainfrom
orionstudt:joshs/engine-example-2
Closed

Rails Engine Support - Example 2#413
orionstudt wants to merge 3 commits intoahx:mainfrom
orionstudt:joshs/engine-example-2

Conversation

@orionstudt
Copy link
Copy Markdown
Contributor

@orionstudt orionstudt commented Oct 24, 2025

Example 2, Testing the Engine without OpenAPI First

In this example I am just showing that by commenting out the openapi_first setup the engine tests can run successfully with rails test engines/weather:

[13:49:50] josh.studt ~/code/openapi_first/examples/rails_app [joshs/engine-example-2]
$ rails test engines/weather
Running 2 tests in a single process (parallelization threshold is 50)
Run options: --seed 35757

# Running:

..

Finished in 0.072053s, 27.7573 runs/s, 83.2720 assertions/s.
2 runs, 6 assertions, 0 failures, 0 errors, 0 skips

Next example

In the next example I will re-order the openapi_first setup in test_helper in order to resolve the Rails.root NameError issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant